# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libmlocale
pkgver=0.7.2
pkgrel=0
pkgdesc="Nemo libmlocale"
url="https://git.sailfishos.org/mer-core/libmlocale"
arch="all"
license="LGPL-2.1-only"
depends_dev="libexecinfo-dev icu-dev"
makedepends="$depends_dev qt5-qtbase-dev qt5-qttools-dev bash"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/libmlocale/-/archive/$pkgver/libmlocale-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	QTDIR=/usr/lib/qt5 ./configure \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="6903cde728e22c77c22cbde5e4ef44110bbd3d620a78bf177c090eac3d784f14806d67599f28bf214d480fc67e6ab6c6d4c5a9bdeeb839f7d61f69c68ad4b97e  libmlocale-0.7.2.tar.gz"
